const sync.mutexLocked
16 uses
sync (current package)
mutex.go#L37: mutexLocked = 1 << iota // mutex is locked
mutex.go#L74: if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
mutex.go#L91: if old&(mutexLocked|mutexStarving) != 0 {
mutex.go#L98: if !atomic.CompareAndSwapInt32(&m.state, old, old|mutexLocked) {
mutex.go#L117: if old&(mutexLocked|mutexStarving) == mutexLocked && runtime_canSpin(iter) {
mutex.go#L133: new |= mutexLocked
mutex.go#L135: if old&(mutexLocked|mutexStarving) != 0 {
mutex.go#L142: if starving && old&mutexLocked != 0 {
mutex.go#L154: if old&(mutexLocked|mutexStarving) == 0 {
mutex.go#L170: if old&(mutexLocked|mutexWoken) != 0 || old>>mutexWaiterShift == 0 {
mutex.go#L173: delta := int32(mutexLocked - 1<<mutexWaiterShift)
mutex.go#L210: new := atomic.AddInt32(&m.state, -mutexLocked)
mutex.go#L219: if (new+mutexLocked)&mutexLocked == 0 {
mutex.go#L231: if old>>mutexWaiterShift == 0 || old&(mutexLocked|mutexWoken|mutexStarving) != 0 {